package com.itheima.springboot_07_druid.dao;


import com.itheima.springboot_07_druid.domain.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper//这是干啥的
public interface BookDao {
    @Select("select * from tb_book where id=#{id}") //给方法一个sql语句
    public Book getById(Integer id);
}
